@model Coowork.Data.Mapping.CooTask

@* This partial view defines form fields that will appear when creating and editing entities *@

<div class="editor-label">
    @Html.LabelFor(model => model.Description)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Description)
    @Html.ValidationMessageFor(model => model.Description)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Wiki)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Wiki)
    @Html.ValidationMessageFor(model => model.Wiki)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.parentId)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.parentId)
    @Html.ValidationMessageFor(model => model.parentId)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Owner)
</div>
<div class="editor-field">
     @Html.Action("ddl", "Account", new { userid = Model == null ? "" : Model.Owner.ToString(), name = "Owner" })
    @Html.ValidationMessageFor(model => model.Owner)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.StatusId)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.StatusId)
    @Html.ValidationMessageFor(model => model.StatusId)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.CreateTime)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.CreateTime)
    @Html.ValidationMessageFor(model => model.CreateTime)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Estimate)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Estimate)
    @Html.ValidationMessageFor(model => model.Estimate)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Remaining)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Remaining)
    @Html.ValidationMessageFor(model => model.Remaining)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Percentage)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.Percentage)
    @Html.ValidationMessageFor(model => model.Percentage)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.Creator)
</div>
<div class="editor-field">
      @Html.Action("ddl", "Account", new { userid = Model == null ? "" : Model.Creator.ToString(), name = "Creator" })
    @Html.ValidationMessageFor(model => model.Creator)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.priority)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.priority)
    @Html.ValidationMessageFor(model => model.priority)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.severity)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.severity)
    @Html.ValidationMessageFor(model => model.severity)
</div>

<div class="editor-label">
    @Html.LabelFor(model => model.deleted)
</div>
<div class="editor-field">
    @Html.EditorFor(model => model.deleted)
    @Html.ValidationMessageFor(model => model.deleted)
</div>

